<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>购物车</title>
<link type="text/css" rel="stylesheet" href="${applicationScope.basePath}easybuy/css/style.css" />
<script type="text/javascript" src="${applicationScope.basePath}easybuy/scripts/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${applicationScope.basePath}easybuy/scripts/function.js"></script>
</head>
<body>
<div id="position" class="wrap">
	您现在的位置：<a href="index.html">易买网</a> &gt; 购物车
</div>
<div class="wrap">
	<div id="shopping">
		<form action="${applicationScope.basePath}ShopServlet?goods=${goods.g_id}" method="post">
		${jieguo}
			<table>
				<tr>
					<th>商品名称</th>
					<th>商品价格</th>
					<th>购买数量</th>
					<th>操作</th>
				</tr>
				<tr>
				<td><img src="${applicationScope.basePath}easybuy/images/product/${goods.g_address}" width="110" height="106" />
<a href="../GoodsShowServlet?name=${goods.g_name}">${goods.g_name}</a></td>
				<td class="price" id="price_id_0">
						<span>￥${goods.g_price}</span>
						<input type="hidden" value="${goods.g_price}" />
					</td>
					<td class="number">
                        <span name="del">-</span>
                        <input id="number_id_0" type="text" name="number" value="1" />
                        <span name="add">+</span>
					</td>
					<td class="delete"><a href="javascript:void(0)">删除</a></td>
				</tr>
			</table>
            <div class="total"><span id="total">总计：￥0</span></div>
			<input type="submit" value="加入"/>
			<a href="../GoodsShowServlet?name=${goods.g_name}">取消</a>
		</form>
	</div>
	<script type="text/javascript">
		document.write("Cookie中记录的购物车商品ID："+ getCookie("product") + "，可以在动态页面中进行读取");
	</script>
</div>
</body>
</html>